Link Change Dates

Hello All, I would like to know if it is possible to know when a link was created or deleted via DXL please.

My search for information on this has so far been unsuccessful.

Any help most appreciated.
Roobroo - Mon Feb 22 04:29:06 EST 2010

Re: Link Change Dates
ePiallat - Mon Feb 22 05:02:02 EST 2010

Hello,

You can get creation date and modification date of a link through corresponding attributes:

Link l
Object o
for o in current Module do for l in o->"*" do {
  print "Link from " (o."Absolute Number") " to "
  print (targetAbsNo l) " created on "
  print l."Created On" "\n"
}

 


For deletion however, you need to access history (providing it was enabled for links):

 

 

History h 
for h in current Module do {
HistoryType ht = h.type
if (ht  == deleteLink) {
   print "Link from " (h.sourceAbsNo) " to " 
   print  (h.targetAbsNo) " deleted on " 
   print (h.date) "\n"
  }
}


Of course, you can get information about creation and modification through history the same way.

\-Éric

 

Re: Link Change Dates
Roobroo - Mon Feb 22 05:25:58 EST 2010

Thank you very much Eric for the prompt information, I will try that out. I hadn't realised that you could interrogate history on links.

Re: Link Change Dates
llandale - Tue Feb 23 13:06:47 EST 2010

ePiallat - Mon Feb 22 05:02:02 EST 2010

Hello,

You can get creation date and modification date of a link through corresponding attributes:

Link l
Object o
for o in current Module do for l in o->"*" do {
  print "Link from " (o."Absolute Number") " to "
  print (targetAbsNo l) " created on "
  print l."Created On" "\n"
}

 


For deletion however, you need to access history (providing it was enabled for links):

 

 

History h 
for h in current Module do {
HistoryType ht = h.type
if (ht  == deleteLink) {
   print "Link from " (h.sourceAbsNo) " to " 
   print  (h.targetAbsNo) " deleted on " 
   print (h.date) "\n"
  }
}


Of course, you can get information about creation and modification through history the same way.

\-Éric

 

I don't recall when they started logging History for links. v8.2?

  • Louie

Re: Link Change Dates
pete.kowalski - Wed Feb 24 09:32:36 EST 2010

llandale - Tue Feb 23 13:06:47 EST 2010
I don't recall when they started logging History for links. v8.2?

  • Louie

I believe it started in DOORS 8.3

Re: Link Change Dates
kbmurphy - Wed Feb 24 16:58:27 EST 2010

Roobroo - Mon Feb 22 05:25:58 EST 2010
Thank you very much Eric for the prompt information, I will try that out. I hadn't realised that you could interrogate history on links.

I believe it was version 8.0. That was one of the big features.

When you do your testing on this, be aware that only the Administrator can truly run link history reports.

See here:

http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14426436&tstart=0